function sum2(...args:number[]){
    return args.reduce((s,n) => s + n, 0);
}
console.log(sum2(1,2,3));


function push(arr:any[],...args:any[]){
    arr.push(...args);
    return arr;
}
let hdms = ["后盾人"];
console.log(push(hdms,'hello',111));